idiot savant

Noun
  1. person who is mentally retarded in general but who displays remarkable aptitude in some limited field (usually involving memory)
idiot savant
A man with an idiot savant condition can instantly calculate complex math problems in his head.